package cc.comac.mom.dao.entity;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import cc.comac.mom.bean.EquipWarehouseStockBean;
import cc.comac.mom.entity.EquipWarehouseStockEntity;

public interface EquipWarehouseStockDao extends BaseMapper<EquipWarehouseStockEntity> {
	
	List<EquipWarehouseStockEntity> selectSpareIdsByWarehouseName(@Param("warehouseName") String warehouseName);
	
	EquipWarehouseStockEntity selectByWarehouseNameAndSpareNumber(@Param("sparePartNumber")String sparePartNumber,@Param("warehouseName") String warehouseName);

	public List<EquipWarehouseStockBean> selectByFields (EquipWarehouseStockBean obj);
    
	public int selectCountByFields(EquipWarehouseStockBean obj);
}
